package cn.itrip.auth.service;

import cn.itrip.auth.exception.DatabaseException;
import cn.itrip.beans.pojo.ItripUser;

import javax.security.auth.login.LoginException;

public interface UserService {
    public ItripUser checkLogin(String userCode,String password) throws LoginException, DatabaseException;

    public void itriptxCreateUser(ItripUser user) throws Exception;

    public void itriptxCreateUserByPhone(ItripUser user) throws Exception;

    public void itriptxUpdateUser(ItripUser user) throws Exception;

    public boolean validatePhone(String phoneNum, String code) throws Exception;

    public ItripUser findByUserCode(String userCode) throws Exception;

    public boolean activate(String mail, String code) throws Exception;
}
